 /*
 * UMLSynch - VPSDE plugin part
 * http://umlsynch.googlecode.com
 *
 * Copyright 2008-2010, Evgeny Alexeyev
 * Licensed under the EPL - v1.0
 * http://www.eclipse.org/legal/epl-v10.html
 *
 */

package com.googlecode.umlsynch.vpsde.plugins.menuitem;

import com.googlecode.umlsynch.vpsde.rpc.ClientFactory;
import com.googlecode.umlsynch.rpc.base.TConfigReader;
import com.googlecode.umlsynch.vpsde.rpc.Server;
import com.googlecode.umlsynch.vpsde.rpc.TVPDebug;
import com.googlecode.umlsynch.vpsde.rpc_old.VPOperationServer.TVPOperationServerDispatcher;
import com.googlecode.umlsynch.vpsde.rpc_old.VPOperationServer.TVPOperationServerImplementation2;
import com.vp.plugin.ApplicationManager;
import com.vp.plugin.VPPlugin;
import com.vp.plugin.VPPluginInfo;

public class UMLSynchPlugin implements VPPlugin {

	private Server srv;

	public void loaded(VPPluginInfo pluginInfo) {
		TVPDebug dbg =  new TVPDebug();
		TConfigReader cfg = new TConfigReader("C:/Temp/umlsynch.ini", dbg);
		
		srv = new Server(cfg.getConfig("VPSDEEDITOR"), dbg);
		
		new ClientFactory(cfg.getConfig("EclipseIndexer"), dbg);
	}

	public void unloaded() {		 
	}

}
